{template common/contentheader} 
<div class="setcontent">
	<div class="settitle">
		<h3>{lang tip_edit_group}-$group['group_title']</h3>
	</div>
	<div class="alert alert-info mt10">
		<span class="label label-info">{lang info:admin}</span>
		{lang tip_edit_group}
	</div>
	<div class="setform">
		<form class="pzform" method="post" action="{url admin/contentgroup?act=edit&groupid=$group['group_id']}" id="addform">
			
			<div class="formgroup">
				<label class="formlabel">{lang category}:</label>
				<div class="formcontrol">
					<select name="category_id" id="category_id">
						{loop $rootCategories $category}
			            		<option value="$category['category_id']" {if $category['category_id']==$group['category_id']}selected{/if}>$category['category_name_cn']</option>
			            {/loop}
					</select>
				</div>
				<span class="formhelp">{lang category}</span>
			</div>
			
			<div class="formgroup">
				<label class="formlabel">{lang group_title}:</label>
				<div class="formcontrol">
					<input type="text" name="group_title" value="$group['group_title']" id="group_title"/>
				</div>
				<span class="formhelp">{lang group_title}</span>
			</div>
			
			<div class="formgroup">
				<label class="formlabel">{lang group_desc}:</label>
				<div class="formcontrol">
					<textarea id="group_desc" name="group_desc" rows="6" class="span4">$group['group_desc']</textarea>
				</div>
				<span class="formhelp">{lang group_desc}</span>
			</div>
			
			<div class="formgroup">
				<label class="formlabel">{lang tag}:</label>
				<div class="formcontrol">
					<input type="text" name="keyword" value="$group['keyword']" id="keyword"/>
				</div>
				<span class="formhelp">{lang tag}</span>
			</div>
			
			<div class="formbuttons">
				<button type="submit" class="btn btn-primary">{lang save:admin}</button>
			</div>
		</form>
	</div>
</div>
{template common/contentfooter}